package com.mm;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@SpringBootApplication
@Controller
@EnableHystrixDashboard //启动断路器仪表盘功能
public class HtstrixDashboardApplication {
    public static void main(String[] args) {
        SpringApplication.run(HtstrixDashboardApplication.class, args);
    }
    //对主页的连接转发到/hystrix
    @RequestMapping("/")
    public String home(){
        return "forward:/hystrix";
    }
}
